<?php
class Department extends ActiveRecord\Model {

    
   static function AddNewDepartment($newDepartment)
      {
          
          if (Department::find_by_depart_name($newDepartment['depart_name']))
            return "Duplicate Key";
            
          $type = new Department($newDepartment);
          return $type->save();
      } 
    
} // End Class Things_model





















?>
